package com.artpri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GoodsCategory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "goods_category", catalog = "jpw")
public class GoodsCategory implements java.io.Serializable {

	// Fields

	private Integer gcId;
	private String categoryName;
	private Integer categoryId;
	private Integer existSub;

	// Constructors

	/** default constructor */
	public GoodsCategory() {
	}

	/** minimal constructor */
	public GoodsCategory(Integer existSub) {
		this.existSub = existSub;
	}

	/** full constructor */
	public GoodsCategory(String categoryName, Integer categoryId,
			Integer existSub) {
		this.categoryName = categoryName;
		this.categoryId = categoryId;
		this.existSub = existSub;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "gc_id", unique = true, nullable = false)
	public Integer getGcId() {
		return this.gcId;
	}

	public void setGcId(Integer gcId) {
		this.gcId = gcId;
	}

	@Column(name = "category_name", length = 60)
	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	@Column(name = "category_id")
	public Integer getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	@Column(name = "exist_sub", nullable = false)
	public Integer getExistSub() {
		return this.existSub;
	}

	public void setExistSub(Integer existSub) {
		this.existSub = existSub;
	}

}